home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
examples
/
exam33
/
m32.dm
< prev
next >
Wrap
Text File
|
1996-03-16
|
1KB
|
65 lines
# Makefile designed for use by the DMAKE.EXE utility and
# Microsoft Visual C/C++ 32 bit
TARGET = main
C_SRC = main.c
BINDIR = ..\..\bin
LIBDIR = ..\..\lib
INCDIR = ..\..\include
.IF $(DEBUG)
CFLAGS = -nologo -I$(INCDIR) -WX -Zi -Gf
LFLAGS = /nologo /subsystem:console /debug
.ELSE
CFLAGS = -nologo -I$(INCDIR) -WX -O2 -Gf
LFLAGS = /nologo /subsystem:console
.END
LIBS = $(LIBDIR)\dynlcm.lib
OBJS = {$(C_SRC:b)}.obj
CC = cl
# Since DMAKE diversions treat the backslach like an escape sequence it is
# necessary to double up the backslashes located in paths
LIBS2 := $(LIBS:s/\/\\/)
OBJS2 := $(OBJS:s/\/\\/)
$(TARGET).exe : $(OBJS) $(LIBS)
link @$(mktmp /out:$@ $(LFLAGS)\n$(OBJS2)\n$(LIBS2)\nwinmm.lib\n)
clean:
$(BINDIR)\rm -zq *.obj
$(BINDIR)\rm -zq *.exe
$(BINDIR)\rm -zq *.ex1
$(BINDIR)\rm -zq *.res
$(BINDIR)\rm -zq *.aps
$(BINDIR)\rm -zq *.pdb
$(BINDIR)\rm -zq *.wsp
$(BINDIR)\rm -zq *.ilk
$(BINDIR)\rm -zq *.bsc
$(BINDIR)\rm -zq *.vcp
$(BINDIR)\rm -zq *.pch
$(BINDIR)\rm -zq *.sbr
$(BINDIR)\rm -zq *.vcw
$(BINDIR)\rm -zq *.map
$(BINDIR)\rm -zq generics.*
$(BINDIR)\rm -zqr WinDebug
$(BINDIR)\rm -zqr WinRel
$(BINDIR)\rm -zq *.idb *.mdp *.ncb